package com.mf.mysql;

import com.mf.mysql.connectors.service.BaseSuper;
import com.mf.mysql.connectors.service.batisutils.BaseSuperQuery;
import com.mf.mysql.connectors.service.batisutils.JDBCutils.Paging;

import java.io.Serializable;
import java.util.List;
import java.util.Map;


public interface JdbcSuper<T> extends BaseSuper, BaseSuperQuery<T> {
	List<Map<String, Object>> selectListMap(String sql, Object... ob);

	List<T> selectList();

	List<T> selectList(Map<String, Object> map);

	Paging<T> selectListByLimit(Integer page, Integer number, Map<String, Object> map);

	T selectOne(Serializable id);

	T selectOne(Map<String, Object> map);

	boolean insert(T o);

	boolean updateById(T o);

	boolean deleteById(Serializable id);

	boolean deleteIn(Serializable[] mod);

	boolean deleteIn(List<Object> mod);

	boolean deleteByMap(Map<String, Object> map);
}
